.container{
    max-width: 1280px !important;
}

body {
    font-family: 'Ubuntu Sans', sans-serif !important;
    color: black;
    font-style: normal !important;
    padding-top: 71.01px;
}

header{
    margin: 0 auto; /* Центрирование */
    position: fixed;
    min-height: 50px;
    justify-content: center;
    top: 0; /* Располагает хэдер в верхней части экрана */
    left: 0;
    right: 0; /* Убедитесь, что это установлено */
    background-color: #ffffff; /* Цвет фона */
    padding: 15px 20px 15px 20px; /* Отступы внутри хедера */
    z-index: 999; /* Устанавливает приоритет отображения*/
}


.row-header {
    align-items: center; /* Вертикальное выравнивание */
    padding: 10px 0 10px 0;
}
.nowrap{
    white-space: nowrap;
}

.position-absolute {
    position: absolute; /* Делаем кнопку-бургер абсолютной */
    right: 10px !important; /* Выравниваем кнопку вправо */
    top: 50%; /* Вертикальный центр */
    transform: translateY(-50%); /* Центрируем по вертикали */
}


.button-header {
    font-family: "Jost", sans-serif;
    font-optical-sizing: auto;
    font-weight: 350;
    font-size: 1.1vw;
    font-style: normal;
    background-color: transparent;
    border: none;
    margin: 0; /* Убираем margin-top */
    display: flex; /* Добавляем для лучшего выравнивания */
    align-items: center; /* Центрируем содержимое кнопки */
}
.sub-menu {
    display: none; /* Скрываем подменю по умолчанию */
    position: relative; /* Позволяет размещать подменю поверх других элементов */
    top: 100%; /* Размещаем ниже хедера */
    background-color: white; /* Фон подменю */
    z-index: 999; /* Убедитесь, что подменю выше остальных элементов */
    padding: 10px; /* Отступы внутри подменю */
    max-width: 1280px; /* Убедитесь, что максимальная ширина соответствует родительскому контейнеру */
    width: 100%; /* Хэдер занимает всю ширину */
}

.sub-menu-item {
    margin: 5px 0; /* Отступы между элементами */
    text-decoration: none; /* Убираем подчеркивание у ссылок */
    color: black; /* Цвет текста */
}
.sub-menu-item h6 {
    margin: 0; /* Убираем отступы у заголовков */
}

.sub-menu-item p {
    margin: 5px 0; /* Отступы у абзацев */
}
.button-header:hover + .sub-menu,
.sub-menu:hover {
    display: block; /* Показываем подменю при наведении на кнопку или само подменю */
}
.hidden {
    display: none;
}

h6{
    margin-bottom: 4px;
}
.sub-menu{
    font-size: smaller;
}
.text-header{
    color: black;
    text-decoration: none;
    font-size: 16px;
}

.sub-text-header{
    color: black;
    text-decoration: none;
    font-size: 8px;
}

.text-header:hover {
    color: gray; 
 }
.sub-menu-item {
    text-decoration: none; /* Убираем подчеркивание у ссылок */
    color: inherit; /* Наследуем цвет текста от родителя */
  }
.sub-menu-item-hover{
    transition: color 0.3s ease;
    font-size: 10px;
}
.sub-menu-item-hover:hover {
    color: gray;  /* Подчеркиваем текст при наведении */
}
.logo2{
    width: 40px;
}
.logo1{
    max-width: 200px;
}

      /* Верхняя панель */
      .top-bar {
        background: #fff;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 16px;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 997;
      }

      .contacts-btn,
      .burger {
        width: 15px;
        height: 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: none;
        cursor: pointer;
        padding: 0;
      }

      .contacts-btn img,
      .burger img {
        width: 15px;
        height: 15px;
      }
:root {
  --topbar: 65px;
  --anim-fast: 220ms;
  --anim-slow: 320ms;
}

:root {
  --anim-open: 320ms;   /* плавное открытие */
  --anim-close: 180ms;  /* быстрое закрытие */
}

/* Подложка, которая гарантирует белый фон при любых переключениях */
.menuCurtain {
  position: fixed;
  top: var(--topbar);
  left: 0;
  right: 0;
  height: calc(100% - var(--topbar));
  background: #fff;
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--anim-fast) ease;
}
.menuCurtain.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* Меню-панели всегда в потоке (display:block), но невидимы до включения класса */
.siteMenuWrapper {
  background: #fff;
  width: 100%;
  height: calc(100% - var(--topbar));
  position: fixed;
  top: var(--topbar);
  left: 0;
  z-index: 999;
  padding: 20px;
  box-sizing: border-box;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  /* анимация появления */
  display: block;            /* было: none;  — так анимации не работали */
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity var(--anim-slow) ,
    transform var(--anim-slow) ,
    visibility 0s linear var(--anim-slow);
}
.siteMenuWrapper.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition:
    opacity var(--anim-slow) ,
    transform var(--anim-slow) ;
}

/* Кнопки с «стеком» иконок (две картинки накладываются и плавно меняются) */
.burger,
.contacts-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.burger .icon-layer,
.contacts-btn .icon-layer {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 200ms ease, transform 240ms ease;
  will-change: opacity, transform;
}
.burger img,
.contacts-btn img {
  height: 15px;
  width: auto;
}

/* Состояния по aria-pressed */
.icon-default { opacity: 1; transform: none; }
.icon-active  { opacity: 0; transform: scale(0.85) rotate(-90deg); }

.burger[aria-pressed="true"] .icon-default,
.contacts-btn[aria-pressed="true"] .icon-default {
  opacity: 0;
  transform: scale(0.85) rotate(90deg);
}
.burger[aria-pressed="true"] .icon-active,
.contacts-btn[aria-pressed="true"] .icon-active {
  opacity: 1;
  transform: none;
}

/* Вежливость к пользователям с reduced motion */
@media (prefers-reduced-motion: reduce) {
  .siteMenuWrapper,
  .menuCurtain,
  .burger .icon-layer,
  .contacts-btn .icon-layer {
    transition: none !important;
  }
}

      .menuList {
        list-style: none;
        padding: 0;
        margin: 0;
      }

      .menuSection {
        font-weight: bold;
        font-size: 18px;
        margin: 20px 0 10px;
      }

      .menuFirstLink {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 16px 0;
        margin-left: 16px;
        font-size: 16px;
        color: #000;
        text-decoration: none;
        border-bottom: 1px solid #e8e8e8;
      }

      .icon-arrow {
        height: 12px;
        margin-right: 5px;
      }

@media (max-width: 1400px) {
    .logo1{
        max-width: 110px;
    }
}

@media (max-width: 900px) {
    .text-header {
        font-size: 12px;
    }
}


@media (max-width: 767px) {
    header {
        padding: 0 20px 0 20px; /* Отступы внутри хедера */
    }
}

@media (max-width: 590px) {
    .logo1{
        max-width: 70px;
    }
}

@media (max-width: 480px) {
    header {
        padding: 0 5px;
    }
}